package com.example.utils;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.TimeZone;

/*
 * @className: ObjectMapperUtils
 * @author: chentao
 * @date: 2025/3/20 上午8:34
 * @Version: 1.0
 * @description:
 */
public class ObjectMapperUtils {

    public static ObjectMapper getDefaultObjectMapper(){
        ObjectMapper objectMapper = new ObjectMapper();
        TimeZone timeZone = TimeZone.getDefault();
        objectMapper.setTimeZone(timeZone);
        return objectMapper;
    }
}
